package cn.ultrarisk.sprinx.mybatis.mapper;

/**
 * MybatisStatement
 *
 * @author sevendlong(lin23871@163.com)
 * @date 2014/4/16
 * @since V1.0
 */
public class MapperStatement {
    private String listStatement;
    private String listMapStatement;
    private String fxStatement;
    private String insertStatement;
    private String insertBatchStatement;
    private String updateStatement;
    private String deleteStatement;

    public MapperStatement(String entityName) {
        this.listStatement = entityName + ".list";
        this.listMapStatement = entityName + ".listMap";
        this.fxStatement = entityName + ".fx";
        this.insertStatement = entityName + ".insert";
        this.insertBatchStatement = entityName + ".insertBatch";
        this.updateStatement = entityName + ".update";
        this.deleteStatement = entityName + ".delete";
    }

    public String listStatement() {
        return listStatement;
    }

    public String listMapStatement() {
        return listMapStatement;
    }

    public String fxStatement() {
        return fxStatement;
    }

    public String insertStatement() {
        return insertStatement;
    }

    public String insertBatchStatement() {
        return insertBatchStatement;
    }

    public String updateStatement() {
        return updateStatement;
    }

    public String deleteStatement() {
        return deleteStatement;
    }
}
